package com.shtel.paas.monitorcenter.autodiscover.service;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class CTJson {
	
	public String make (){
		
		
		
		String xmlString;
		byte[] strBuffer = null;
		int flen = 0;
		File xmlfile = new File("D:/eclipse2/autofind/test/src/main/resources/json.json");
		try {
		InputStream in = new FileInputStream(xmlfile);
		flen = (int)xmlfile.length();
		strBuffer = new byte[flen];
		in.read(strBuffer, 0, flen);
		} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
		} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
		}
		xmlString = new String(strBuffer); //����Stringʱ������byte[]���ͣ�
		
		return xmlString;
		
	}
}
